package project;

import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class map_test {
    public static void main(String[] args) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("a", "aaaaa");
        map.put("b", "bbbbbb");
        System.out.println(map.get("a"));
        System.out.println(map.keySet());
        for (String s : map.keySet()) {
            System.out.println(s + " : " + map.get(s));
        }
        for (Entry e : map.entrySet()) {
            System.out.println(e.getKey() + ":" + e.getValue());
        }
    }
}
